package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.UndoLogMapper;
import com.ruoyi.product.domain.UndoLog;
import com.ruoyi.product.service.IUndoLogService;

/**
 * 事务回滚Service业务层处理
 * 
 * @author 汤小洋
 * @date 2024-11-07
 */
@Service
public class UndoLogServiceImpl implements IUndoLogService 
{
    @Autowired
    private UndoLogMapper undoLogMapper;

    /**
     * 查询事务回滚
     * 
     * @param id 事务回滚主键
     * @return 事务回滚
     */
    @Override
    public UndoLog selectUndoLogById(Long id)
    {
        return undoLogMapper.selectUndoLogById(id);
    }

    /**
     * 查询事务回滚列表
     * 
     * @param undoLog 事务回滚
     * @return 事务回滚
     */
    @Override
    public List<UndoLog> selectUndoLogList(UndoLog undoLog)
    {
        return undoLogMapper.selectUndoLogList(undoLog);
    }

    /**
     * 新增事务回滚
     * 
     * @param undoLog 事务回滚
     * @return 结果
     */
    @Override
    public int insertUndoLog(UndoLog undoLog)
    {
        return undoLogMapper.insertUndoLog(undoLog);
    }

    /**
     * 修改事务回滚
     * 
     * @param undoLog 事务回滚
     * @return 结果
     */
    @Override
    public int updateUndoLog(UndoLog undoLog)
    {
        return undoLogMapper.updateUndoLog(undoLog);
    }

    /**
     * 批量删除事务回滚
     * 
     * @param ids 需要删除的事务回滚主键
     * @return 结果
     */
    @Override
    public int deleteUndoLogByIds(Long[] ids)
    {
        return undoLogMapper.deleteUndoLogByIds(ids);
    }

    /**
     * 删除事务回滚信息
     * 
     * @param id 事务回滚主键
     * @return 结果
     */
    @Override
    public int deleteUndoLogById(Long id)
    {
        return undoLogMapper.deleteUndoLogById(id);
    }
}
